home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pctchnqs
/
1991
/
number2
/
bitmask.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-08
|
790b
|
30 lines
//-------------------------------------------------------------//
// File: BitMask.Hpp //
// Desc: Definition of a Single-Plane Bitmap Class //
// Author: Marv Luse, Autumn Hill Software //
//-------------------------------------------------------------//
#ifndef _BITMASK_HPP_
#define _BITMASK_HPP_
//........ BitMask Class
class BitMask
{
protected:
int width; // width in pixels
int height; // height in pixels
int rowbytes; // bytes per row
char *mask; // pointer to bitmask
public:
BitMask( );
BitMask( int w, int h, char *m );
~BitMask( );
virtual void draw( int x, int y, int clr );
};
#endif